/*
 * 易族智汇（北京）科技有限公司 版权所有。
 * 未经许可，您不得使用此文件。
 * 官方地址：www.javamall.com.cn
 */
package com.enation.app.javashop.core.client.feignimpl.system;

import com.enation.app.javashop.client.system.PageDataClient;
import com.enation.app.javashop.core.client.fallback.system.PageDataClientFallbackFactory;
import com.enation.app.javashop.core.handler.FeignConfiguration;
import com.enation.app.javashop.model.pagedata.PageData;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.*;

import java.util.List;

/**
 * 商品收集manager
 *
 * @author chopper
 * @version v1.0
 * @Description:
 * @since v7.0
 * 2018/5/8 下午4:11
 */

@FeignClient(name = "system-service", fallbackFactory = PageDataClientFallbackFactory.class,configuration = {FeignConfiguration.class})
public interface PageDataClientFeignImpl extends PageDataClient {

    @Override
    @RequestMapping(value = "/client/pages/{id}", method = RequestMethod.PUT)
    PageData edit(@RequestBody PageData page, @PathVariable("id") Long id);

    @Override
    @RequestMapping(value = "/client/pages/selectPageByGoods", method = RequestMethod.GET)
    List<PageData> selectPageByGoods(@RequestParam("goods_ids") Long[] goodsIds);

}
